package com.bsj.pay.config;

import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;

import com.bsj.pay.service.ConfigService;

@Component
public class InitConfig implements ApplicationRunner{
	private static final Logger log = LogManager.getLogger(InitConfig.class);

	@Autowired
	private ConfigService configService;
	
	@Override
	public void run(ApplicationArguments args) throws Exception {
		// TODO Auto-generated method stub
		log.info("==========Init Config===========");
		configService.init();
	}

}
